//TODO 用来做router的过滤器
export default function ({ redirect }) {
  console.log("这是中间件在工作")
  if (process.client) {
    let token = window.localStorage.getItem("token")
    if(token){
      console.log(token);
    }else{
      return redirect("/login/login")
    }
  }


  // console.log(context)
}


